import React from 'react';
import { Toast, } from 'antd-mobile';

export default class Index extends React.Component {
    constructor(props){
        super(props)
        this.state={
			id: props.match.params.id,
		}
    }
	componentDidMount(){
		document.title = '详情'
        global.Ajax.hhtc_request("active/jc_detail",{id: this.state.id}).then(data=>{
			if(data.code===1){
                this.setState(data.data)
            }
		})
	}
	render(){
		return(
			<div className='moment_box'>
                <h1>{this.state.title}</h1>
				<div dangerouslySetInnerHTML={{__html:this.state.content}}></div>
			</div>
		)
	}
}
